<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let map = new Map();
        // let obj ='后盾人'

        // map.set(obj, "houdunren.com").set("name", "hdcms");

        // console.log([...map.keys()]); //.MapIterator {{…} => "houdunren.com", "name" => "hdcms"}


        let hd = new Map([["houdunren", "后盾人"], ["hdcms", "开源系统"]]);
        // hd.forEach((value, key) => {
        //     console.log(`${key}=>${value}`);
        // });
        console.log(hd)
        // console.log(...hd); //(2) ["houdunren", "后盾人"] (2) ["hdcms", "开源系统"]
        // console.log([...hd])
        // console.log(...hd.entries()); //(2) ["houdunren", "后盾人"] (2) ["hdcms", "开源系统"]
        // console.log(...hd.values()); //后盾人 开源系统
        console.log([...hd.values()]); //houdunren hdcms

        // console.log(m.keys()); //后盾人
        // let hd = new Map([["houdunren", "后盾人"], ["hdcms", "开源系统"]]);

        // let newArr = [...hd].filter(function (item) {
        //     return item[1].includes("后盾人");
        // });
        // console.log(hd)
        // console.log(newArr)
        // hd = new Map(newArr);
        // console.log(...hd.keys());
    </script>
</body>

</html>